package com.shark.study.controller;

import com.shark.study.enitity.School;
import com.shark.study.service.SchoolService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName SchoolController
 * @Description TODO
 * @Author 东北彭于晏
 * @Date 2024/10/13  19:27
 * @Version 1.0
 **/
@RestController
public class SchoolController
{
    @Resource
    private SchoolService schoolService;

    @GetMapping(value = "/school/list")
    public List<School> findAllTbSchool() {
        return schoolService.list();
    }
}
